<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="/Admin/tpl/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/Admin/tpl/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="/Admin/tpl/Css/style.css" />
    <script type="text/javascript" src="/Admin/tpl/Js/jquery.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/bootstrap.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/ckform.js"></script>
    <script type="text/javascript" src="/Admin/tpl/Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<form class="form-inline definewidth m20" action="index.html" method="get">  
  <button type="button" class="btn btn-success" id="addnew">新增品牌</button>
</form>
<table class="table table-bordered table-hover definewidth m10" >
    <thead>
    <tr>
        <th>品牌id</th>
        <th>品牌名称</th>
		<th>品牌LOGO</th>
        <th>所属栏目</th>
		<th>品牌排序</th>
        <th>操作</th>
    </tr>
    </thead>
	     
			<Volist name='pinpai' id='vo'>
			<tr>
            <td>{$vo.pinpai_id}</td>
            <td>{$vo.pinpai_name}</td>
			<td><img src='/uploadfiles/{$vo.pinpai_logo}' width='75'/></td>
			<td>{$vo.lanmu_name}</td>
			<td>{$vo.paixu}</td>
            <td>
                  <a href="__APP__/Pinpai/edit?id={$vo.pinpai_id}">编辑</a>
				  <a href="__APP__/Pinpai/del?id={$vo.pinpai_id}" onClick='javascript:return confirm("确定要删除吗？");'>删除</a>
                  
            </td>
			</tr>
			</Volist>
        </table>
		</body>
		</html>

<script>
    $(function () {
        
		$('#addnew').click(function(){

				window.location.href="__APP__/Pinpai/add";
		 });


    });

	function del(id)
	{
		
		
		if(confirm("确定要删除吗？"))
		{
		
			var url = "index.html";
			
			window.location.href=url;		
		
		}
	
	
	
	
	}
</script>